package day3.lesson03

import java.io.File

import scala.io.Source

import MyPredef._


class RichFile(f:File){
  def read():String={
    Source.fromFile(f).mkString
  }
}
object Test {
  def main(args: Array[String]): Unit = {
    try {
      val file = new File("D:\\1711班\\第四天\\文档\\第四天.txt").read()
      print(file)
    } catch {
      case  e:Exception=>
    }
  }

}
